//
//  SecondcViewController.m
//  Four_years
//
//  Created by 中软国际019 on 15/11/9.
//  Copyright © 2015年 中软三班四年小组. All rights reserved.
//

#import "SecondcViewController.h"
#import "ThirdcViewController.h"

@interface SecondcViewController ()

@end

@implementation SecondcViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"考试背景图.jpg"]];
    self.navigationItem.title=@"我的考试";
    self.navigationItem.rightBarButtonItem=[[UIBarButtonItem alloc]initWithTitle:@"编辑" style:UIBarButtonItemStylePlain target:self action:@selector(add:)];
    
}
-(void)add:(UIBarButtonItem *)add{
    NSLog(@"kaoshi ");
    ThirdcViewController *thirdcCtr=[[ThirdcViewController alloc]init];
    [self.navigationController pushViewController:thirdcCtr animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
